package com.powernode.feign;

import com.powernode.domain.Prod;
import com.powernode.domain.Sku;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "product-service")
public interface CartProdFeign {
    @PostMapping("prod/prod/loadProdById")
    @ApiOperation("根据prodId获取商品")
    List<Prod> loadProdById(@RequestBody List<Long> ProdIds);


    @PostMapping("prod/sku/loadSkuById")
    @ApiOperation("根据skuId获取Sku")
    List<Sku> loadSkuById(@RequestBody List<Long> skuIds);

}
